package cd826dong.cloud.demo;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.netflix.turbine.EnableTurbine;


/**
 * @author ZHOUTIEQIANG053
 *在浏览器中输入http://localhost:8280/hystrix.stream，。
 *然后在界面中输入之前的地址http://localhost:8100/hystrix.stream，单击Monitor Stream按钮，就可
    以看到如图5-11所示的统计报表页面。只能监控到消费端colude-consumer，不能监控colude-provide
 */
//增加EnableHystrixDashboard注解依赖，就可以开启Dashboard
@EnableHystrixDashboard
@EnableDiscoveryClient
@SpringBootApplication
@EnableTurbine
public class Application {
    public static void main(String[] args) {
        new SpringApplicationBuilder(Application.class).web(true).run(args);
    }
    
    
}
